﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucNewsDetail.ascx.cs"
    Inherits="TTMarketing.UserControl.ucNewsDetail" %>
<asp:ObjectDataSource ID="odsNews" runat="server" SelectMethod="getById" TypeName="TTBusiness.ClassDB.clsBSNews">
    <SelectParameters>
        <asp:QueryStringParameter DefaultValue="" Name="id" QueryStringField="id" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
<telerik:RadListView ID="RadListView1" runat="server" DataSourceID="odsNews" BorderWidth="0px"
    ItemPlaceholderID="ph" AllowPaging="True" PageSize="15" Width="100%">
    <LayoutTemplate>
        <asp:PlaceHolder runat="server" ID="ph" />
    </LayoutTemplate>
    <ItemTemplate>
        <div id="com-left">
            <div id="com-left-title">
                <%# Eval("Title") %></div>
            <div id="com-left-box">
                <h2 class="Lead">
                    <%# Eval("Summary") %></h2>
                <%# Eval("Detail") %>
            </div>
        </div>
    </ItemTemplate>
    <EmptyDataTemplate>
        <div class="RadListView RadListView_Default">
            <div class="rlvEmpty">
                Dữ liệu đang cập nhật</div>
        </div>
    </EmptyDataTemplate>
</telerik:RadListView>
<br />
Cùng loại :
<br />
<telerik:RadListView ID="RadListView2" runat="server" DataSourceID="odsOther" BorderWidth="0px"
    ItemPlaceholderID="ph" AllowPaging="True" PageSize="15" Width="100%">
    <LayoutTemplate>
        <asp:PlaceHolder runat="server" ID="ph" />
    </LayoutTemplate>
    <ItemTemplate>
        <table width="100%" id="News-l0">
            <tr>
                <td align="left" valign="top">
                    + <a href='<%# "?id="+Eval("ID") %>'>
                        <%# Eval("Title") %>
                    </a><span>(<%# Eval("Date") %>) </span>
                </td>
            </tr>
        </table>
    </ItemTemplate>
    <EmptyDataTemplate>
        <div class="RadListView RadListView_Default">
            <div class="rlvEmpty" style="background-color:transparent;">
                Dữ liệu đang cập nhật</div>
        </div>
    </EmptyDataTemplate>
</telerik:RadListView>
<asp:ObjectDataSource ID="odsOther" runat="server" SelectMethod="getOtherNews" 
    TypeName="TTBusiness.ClassDB.clsBSNews">
    <SelectParameters>
        <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
